<?php defined('PT_ROOT') || exit('Permission denied');?><!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="utf-8" />
    <title><?php if ($_parsetplfile=parseTpl($tkd['title'])){include $_parsetplfile;}?></title>
    <meta name="keywords" content="<?php if ($_parsetplfile=parseTpl($tkd['keywords'])){include $_parsetplfile;}?>" />
    <meta name="description" content="<?php if ($_parsetplfile=parseTpl($tkd['description'])){include $_parsetplfile;}?>" />
    
<meta name="author" content="www.ptcms.com">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform " />
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<meta name="applicable-device" content="pc">
<!--<meta http-equiv="mobile-agent" content="format=html5; url=http://m.kuaiyankanshu.net<?php echo __SELF__;?>">-->
<link rel="stylesheet" href="<?php echo $this->pt->config->get("resurl");?><?php echo __TMPL__;?>/css/global.css" />
<link rel="stylesheet" href="<?php echo $this->pt->config->get("resurl");?><?php echo __TMPL__;?>/css/style.css" />
<!--[if lt IE 9]>
<script src="<?php echo $this->pt->config->get("resurl");?><?php echo __TMPL__;?>/script/html5shiv.min.js"></script>
<![endif]-->

</head>
<body>

<header>
    <div class="ann">
        <?php echo $this->pt->config->get("tplconfig.ann");?>
    </div>
    <div class="banner ">
        <div class="w-all">
            <ul class="fl">
                <?php if(IS_LOGIN):?>
                <li>您好，<a href="javascript:void(0)"><?php echo $userinfo['name'];?></a></li>
                <li><a href="<?php echo U("user.mark.index",array());?>">我的书架</a></li>
                <li><a href="<?php echo U("user.public.logout",array());?>">退出登陆</a></li>
                <?php else:?>
                <li><a href="<?php echo U("user.public.login",array());?>">登陆账号</a></li>
                <li><a href="<?php echo U("user.public.register",array());?>">免费注册</a></li>
                <?php endif;?>
            </ul>
            <ul class="fr">
                <li><i class="pticon pticon-mobile pticon-lg"></i><a href="<?php echo $this->pt->config->get("wap_domain");?>" target="_blank" title="<?php echo $this->pt->config->get("sitename");?>手机版">手机快眼</a></li>
                <li><i class="pticon pticon-home pticon-lg"></i><a href="javascript:$.pt.setHome('<?php echo $this->pt->config->get("siteurl");?>');">设为首页</a></li>
                <li><i class="pticon pticon-star pticon-lg"></i><a href="javascript:$.pt.addFav();">加入收藏</a></li>
                <li><i class="pticon pticon-desktop"></i><a href="<?php echo U("novelsearch.index.desktop",array());?>" target="_blank">桌面快捷</a></li>
            </ul>
        </div>
    </div>
    <div class="clear"></div>
    <div class="logosearch w-all ">
        <div class="logo fl"><a href="<?php echo $this->pt->config->get("siteurl");?>" title="<?php echo $this->pt->config->get("sitename");?>"><img src="<?php echo __TMPL__;?>/image/logo.png" alt="<?php echo $this->pt->config->get("sitename");?>" /></a></div>
        <form class="searchbox fl" action="<?php echo U("novelsearch.search.result",array());?>">
            <div class="dropmenu">
                <span class="tri"></span>
                <ul class="dropmenu-item">
                    <li data-type="novelname">书名</li>
                    <li data-type="author">作者</li>
                </ul>
            </div>
            <input name="searchtype" type="hidden" value="novelname"/>
            <label class="fl"><input type="text" name="searchkey" id="" class="text"/></label>
            <input type="submit" value="搜索" class="searchbtn"/>
        </form>
        <div class="operate fl">
            <?php if(IS_LOGIN):?>
            <a class="operate-item" href="<?php echo U("user.public.logout",array());?>">
                <i class="pticon pticon-sign-out"></i>
                <b>退出登陆</b>
            </a>
            <a class="operate-item" href="<?php echo U("user.habbit.index",array());?>">
                <i class="pticon pticon-cog"></i>
                <b>阅读习惯</b>
            </a>
            <a class="operate-item" href="<?php echo U("user.mark.index",array());?>">
                <i class="pticon pticon-book"></i>
                <b>我的书架</b>
                <?php if($userinfo['marknum']):?><s class="badge"><?php echo $userinfo['marknum'];?></s><?php endif;?>
            </a>
            <a class="operate-item" href="<?php echo U("user.third.index",array());?>">
                <i class="pticon pticon-user"></i>
                <b>账户绑定</b>
            </a>
            <?php else:?>
            <a class="operate-item" title="看过的书" href="<?php echo U("user.history.index",array());?>">
                <i class="pticon pticon-history"></i>
                <b>看过的书</b>
            </a>
            <a class="operate-item" title="QQ登陆" href="<?php echo U("user.public.thirdlogin",array('type'=>'qq'));?>">
                <i class="pticon pticon-qq"></i>
                <b>QQ登陆</b>
            </a>
            <a class="operate-item" title="微博登陆" href="<?php echo U("user.public.thirdlogin",array('type'=>'weibo'));?>">
                <i class="pticon pticon-weibo"></i>
                <b>微博登陆</b>
            </a>
            <a class="operate-item" title="用户登陆" href="<?php echo U("user.public.login",array());?>">
                <i class="pticon pticon-user"></i>
                <b>用户登陆</b>
            </a>
            <?php endif;?>
        </div>
    </div>
    <nav class="w-all">
        <ul class="clearfix">
            <li><a href="<?php echo $this->pt->config->get("siteurl");?>" title="<?php echo $this->pt->config->get("sitename");?>首页">首页</a></li>
            <li><a href="<?php echo U("novelsearch.index.category",array());?>" title="小说分类">小说分类</a></li>
            <li><a href="<?php echo U("novelsearch.index.top",array());?>" title="排行榜单">排行榜单</a></li>
			<li><a href="<?php echo U("novelsearch.list.top",array('type'=>'allvisit'));?>" title="总点击榜">总点击榜</a></li>
			<li><a href="<?php echo U("novelsearch.list.top",array('type'=>'monthvisit'));?>" title="月点击榜">月点击榜</a></li>
			<li><a href="<?php echo U("novelsearch.list.top",array('type'=>'weekvisit'));?>" title="周点击榜">周点击榜</a></li>
            <li><a href="<?php echo U("novelsearch.list.top",array('type'=>'lastupdate'));?>" title="最近更新">最近更新</a></li>
            <li><a href="<?php echo U("novelsearch.list.over",array());?>" title="全本小说">全本小说</a></li>
        </ul>
    </nav>
<div class="card mb20" style="width: 978px;margin: 0 auto;">
            <div class="body novelselectlist">
                <p>
                        <?php $list=$this->pt->block->getdata('categorylist',array('pid'=>0));?>
                        <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <a href="<?php echo $loop['url'];?>" title="<?php echo $loop['name'];?>"><?php echo $loop['name'];?></a>&nbsp;&nbsp;
                        <?php endforeach; endif;?>
                </p>
            </div>
        </div>	
</header>
<section class="w-all">
    <nav class="mt20">
        <ul class="clearfix">
            <li><a href="<?php echo $this->pt->config->get("siteurl");?>" title="<?php echo $this->pt->config->get("sitename");?>首页"><i class="pticon pticon-home pticon-lg"></i> <?php echo $this->pt->config->get("sitename");?>首页</a><i class="pticon pticon-angle-right icon"></i></li>
            <li><a href="<?php echo __SELF__;?>" title="排行榜">排行榜</a></li>
        </ul>
    </nav>
    <div class="container clearfix mt20">
        <ul class="topindex">
            <li>
                <div class="card">
                    <div class="header line">
                        <h3>点击排行</h3>
                    </div>
                    <div class="body">
                    <ul class="rightlist">
                        <?php $list=$this->pt->block->getdata('novellist',array('sort'=>"allvisit",'num'=>10));?>
                        <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <li><i <?php if($i['order']<4):?>class="first"<?php endif;?>><?php echo $i['order'];?></i>
                            <a href="<?php echo $loop['author']['url'];?>" title="<?php echo $loop['author']['name'];?> 作品大全"><?php echo $loop['author']['name'];?></a></li>
                        <?php endforeach; endif;?>
                     </ul>
                    </div>
                    <div class="footer tar">
                        <a href="<?php echo U("novelsearch.list.top",array('type'=>'allvisit'));?>">查看更多>></a>
                    </div>
                </div>
            </li>
            <li>
                <div class="card">
                    <div class="header line">
                        <h3>推荐排行</h3>
                    </div>
                    <div class="body">
                        <ul class="rightlist">
                        <?php $list=$this->pt->block->getdata('novellist',array('sort'=>"votenum",'num'=>10));?>
                        <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <li><i <?php if($i['order']<4):?>class="first"<?php endif;?>><?php echo $i['order'];?></i><a href="<?php echo $loop['author']['url'];?>" title="<?php echo $loop['author']['name'];?> 作品大全"><?php echo $loop['author']['name'];?></a></a></li>
                        <?php endforeach; endif;?>
                     </ul>
                    </div>
                    <div class="footer tar">
                        <a href="<?php echo U("novelsearch.list.top",array('type'=>'votenum'));?>">查看更多>></a>
                    </div>
                </div>
            </li>
            <li class="mr0">
                <div class="card">
                    <div class="header line">
                        <h3>收藏排行</h3>
                    </div>
                    <div class="body">
                        <ul class="rightlist">
                        <?php $list=$this->pt->block->getdata('novellist',array('sort'=>"marknum",'num'=>10));?>
                        <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <li><i <?php if($i['order']<4):?>class="first"<?php endif;?>><?php echo $i['order'];?></i><a href="<?php echo $loop['author']['url'];?>" title="<?php echo $loop['author']['name'];?> 作品大全"><?php echo $loop['author']['name'];?></a></li>
                        <?php endforeach; endif;?>
                     </ul>
                    </div>
                    <div class="footer tar">
                        <a href="<?php echo U("novelsearch.list.top",array('type'=>'marknum'));?>">查看更多>></a>
                    </div>
                </div>
            </li>
            <li>
                <div class="card">
                    <div class="header line">
                        <h3>本日点击排行</h3>
                    </div>
                    <div class="body">
                        <ul class="rightlist">
                        <?php $list=$this->pt->block->getdata('novellist',array('sort'=>"dayvisit",'num'=>10));?>
                        <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <li><i <?php if($i['order']<4):?>class="first"<?php endif;?>><?php echo $i['order'];?></i><a href="<?php echo $loop['author']['url'];?>" title="<?php echo $loop['author']['name'];?> 作品大全"><?php echo $loop['author']['name'];?></a></li>
                        <?php endforeach; endif;?>
                     </ul>
                    </div>
                    <div class="footer tar">
                        <a href="<?php echo U("novelsearch.list.top",array('type'=>'dayvisit'));?>">查看更多>></a>
                    </div>
                </div>
            </li>
            <li>
                <div class="card">
                    <div class="header line">
                        <h3>本周点击排行</h3>
                    </div>
                    <div class="body">
                       <ul class="rightlist">
                       <?php $list=$this->pt->block->getdata('novellist',array('order'=>"weekvisit",'num'=>10));?>
                       <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <li><i <?php if($i['order']<4):?>class="first"<?php endif;?>><?php echo $i['order'];?></i><a href="<?php echo $loop['author']['url'];?>" title="<?php echo $loop['author']['name'];?> 作品大全"><?php echo $loop['author']['name'];?></a></li>
                        <?php endforeach; endif;?>
                     </ul>
                    </div>
                    <div class="footer tar">
                        <a href="<?php echo U("novelsearch.list.top",array('type'=>'weekvisit'));?>">查看更多>></a>
                    </div>
                </div>
            </li>
            <li class="mr0">
                <div class="card">
                    <div class="header line">
                        <h3>本月点击排行</h3>
                    </div>
                    <div class="body">
                        <ul class="rightlist">
                        <?php $list=$this->pt->block->getdata('novellist',array('sort'=>"monthvisit",'num'=>10));?>
                        <?php if(is_array($list) && (array()!=$list)): $i=array(); $i['loop']=array_slice($list,0,null,true); $i['total']=count($list); $i['count']=count($i['loop']); $i['cols']=1; $i['add']=$i['count']%1?1-$i['count']%1:0; $i['order']=0; $i['row']=1;$i['col']=0;foreach(array_pad($i['loop'],$i['add'],array()) as $i['index']=>$i['list']): $loop=$i['list']; $i['order']++; $i['col']++; if($i['col']==1): $i['col']=0; $i['row']++; endif; $i['first']=$i['order']==1; $i['last']=$i['order']==$i['count']; $i['extra']=$i['order']>$i['count'];?>
                        <li><i <?php if($i['order']<4):?>class="first"<?php endif;?>><?php echo $i['order'];?></i><a href="<?php echo $loop['author']['url'];?>" title="<?php echo $loop['author']['name'];?> 作品大全"><?php echo $loop['author']['name'];?></a></li>
                        <?php endforeach; endif;?>
                     </ul>
                    </div>
                    <div class="footer tar">
                        <a href="<?php echo U("novelsearch.list.top",array('type'=>'monthvisit'));?>">查看更多>></a>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</section>
<footer>
    <div class="copyright w-all tac">
        <?php $list=$this->pt->block->getdata('pagelist',array());?>
        <?php if(is_array($list)): foreach($list as $key =>$loop):?>
        <a href="<?php echo $loop['url'];?>" title="<?php echo $loop['name'];?>"><?php echo $loop['name'];?></a>&nbsp;&nbsp;&nbsp;&nbsp;
        <?php endforeach; endif;?>
        <a href="<?php echo U("sitemap.index.index",array());?>" title="sitemap" target="_blank">Sitemap</a>
        <br />
        Copyright © 2009-2014 <a href="<?php echo $this->pt->config->get("siteurl");?>" target="_blank"><?php echo $this->pt->config->get("sitename");?></a> All Rights Reserved .版权所有<?php echo $this->pt->config->get("sitename");?>。<br />
        本站内容系<?php echo $this->pt->config->get("sitename");?>根据您的指令搜索各大小说站得到的链接列表，不代表<?php echo $this->pt->config->get("sitename");?>赞成被搜索网站的内容或立场<br />
        如果版权人认为在本站放置您的作品有损您的利益，请发邮件至<?php echo $this->pt->config->get("email");?>，本站确认后将会立即删除。<br /><?php echo $this->pt->config->get("beian");?>
    </div>
</footer>
<div class="gotop"><i class="pticon pticon-chevron-up"></i></div>
<script type="text/javascript" src="<?php echo $this->pt->config->get("resurl");?><?php echo PT_DIR;?>/public/script/jquery.min.js"></script>
<script type="text/javascript" src="<?php echo $this->pt->config->get("resurl");?><?php echo __TMPL__;?>/script/common.js"></script>
<div style="display:none">
    <?php echo '<script type="text/javascript" src="'.PT_DIR . '/public/ptcms/tongji.js"></script>';?>
</div>
</body>
</html>